<?php
$tdatabrc_items=array();
	$tdatabrc_items[".NumberOfChars"]=80; 
	$tdatabrc_items[".ShortName"]="brc_items";
	$tdatabrc_items[".OwnerID"]="";
	$tdatabrc_items[".OriginalTable"]="brc_items";


	
//	field labels
$fieldLabelsbrc_items = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsbrc_items["English"]=array();
	$fieldToolTipsbrc_items["English"]=array();
	$fieldLabelsbrc_items["English"]["id"] = "Id";
	$fieldToolTipsbrc_items["English"]["id"] = "";
	$fieldLabelsbrc_items["English"]["brc_id"] = "Brc Id";
	$fieldToolTipsbrc_items["English"]["brc_id"] = "";
	$fieldLabelsbrc_items["English"]["invoice_no"] = "Invoice No";
	$fieldToolTipsbrc_items["English"]["invoice_no"] = "";
	$fieldLabelsbrc_items["English"]["invoice_date"] = "Invoice Date";
	$fieldToolTipsbrc_items["English"]["invoice_date"] = "";
	$fieldLabelsbrc_items["English"]["custom_no"] = "Custom No";
	$fieldToolTipsbrc_items["English"]["custom_no"] = "";
	$fieldLabelsbrc_items["English"]["custom_date"] = "Custom Date";
	$fieldToolTipsbrc_items["English"]["custom_date"] = "";
	$fieldLabelsbrc_items["English"]["description"] = "Description";
	$fieldToolTipsbrc_items["English"]["description"] = "";
	$fieldLabelsbrc_items["English"]["blrawb_no"] = "Blrawb No";
	$fieldToolTipsbrc_items["English"]["blrawb_no"] = "";
	$fieldLabelsbrc_items["English"]["blrawb_date"] = "Blrawb Date";
	$fieldToolTipsbrc_items["English"]["blrawb_date"] = "";
	$fieldLabelsbrc_items["English"]["country_id"] = "Country";
	$fieldToolTipsbrc_items["English"]["country_id"] = "";
	$fieldLabelsbrc_items["English"]["bill_amount"] = "Bill Amount";
	$fieldToolTipsbrc_items["English"]["bill_amount"] = "";
	$fieldLabelsbrc_items["English"]["currency_id"] = "Currency";
	$fieldToolTipsbrc_items["English"]["currency_id"] = "";
	$fieldLabelsbrc_items["English"]["freight_amount"] = "Freight Amount";
	$fieldToolTipsbrc_items["English"]["freight_amount"] = "";
	$fieldLabelsbrc_items["English"]["insurance_amount"] = "Insurance Amount";
	$fieldToolTipsbrc_items["English"]["insurance_amount"] = "";
	$fieldLabelsbrc_items["English"]["freely_convertable"] = "Freely Convertable";
	$fieldToolTipsbrc_items["English"]["freely_convertable"] = "";
	$fieldLabelsbrc_items["English"]["fob"] = "Fob";
	$fieldToolTipsbrc_items["English"]["fob"] = "";
	$fieldLabelsbrc_items["English"]["realisation_date"] = "Realisation Date";
	$fieldToolTipsbrc_items["English"]["realisation_date"] = "";
	$fieldLabelsbrc_items["English"]["sdf_form_no"] = "Sdf Form No";
	$fieldToolTipsbrc_items["English"]["sdf_form_no"] = "";
	$fieldLabelsbrc_items["English"]["remarks"] = "Remarks";
	$fieldToolTipsbrc_items["English"]["remarks"] = "";
	$fieldLabelsbrc_items["English"][""] = "";
	$fieldToolTipsbrc_items["English"][""] = "";
	$fieldLabelsbrc_items["English"][""] = "Brc Items";
	$fieldToolTipsbrc_items["English"][""] = "";
	$fieldLabelsbrc_items["English"][""] = "";
	$fieldToolTipsbrc_items["English"][""] = "";
	$fieldLabelsbrc_items["English"][""] = "";
	$fieldToolTipsbrc_items["English"][""] = "";
	if (count($fieldToolTipsbrc_items["English"])){
		$tdatabrc_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["brc_id"] = "Brc Id";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["brc_id"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["invoice_no"] = "Invoice No";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["invoice_no"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["invoice_date"] = "Invoice Date";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["invoice_date"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["custom_no"] = "Custom No";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["custom_no"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["custom_date"] = "Custom Date";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["custom_date"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["description"] = "Description";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["description"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["blrawb_no"] = "Blrawb No";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["blrawb_no"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["blrawb_date"] = "Blrawb Date";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["blrawb_date"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["country_id"] = "Country Id";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["country_id"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["bill_amount"] = "Bill Amount";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["bill_amount"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["currency_id"] = "Currency Id";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["currency_id"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["freight_amount"] = "Freight Amount";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["freight_amount"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["insurance_amount"] = "Insurance Amount";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["insurance_amount"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["freely_convertable"] = "Freely Convertable";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["freely_convertable"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["fob"] = "Fob";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["fob"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["realisation_date"] = "Realisation Date";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["realisation_date"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["sdf_form_no"] = "Sdf Form No";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["sdf_form_no"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"]["remarks"] = "Remarks";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"]["remarks"] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"][""] = "Brc Items";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldLabelsbrc_items["Chinese (Hong Kong S.A.R.)"][""] = "";
	$fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"][""] = "";
	if (count($fieldToolTipsbrc_items["Chinese (Hong Kong S.A.R.)"])){
		$tdatabrc_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsbrc_items["Chinese (Taiwan)"]=array();
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]=array();
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["brc_id"] = "Brc Id";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["brc_id"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["invoice_no"] = "Invoice No";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["invoice_no"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["invoice_date"] = "Invoice Date";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["invoice_date"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["custom_no"] = "Custom No";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["custom_no"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["custom_date"] = "Custom Date";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["custom_date"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["description"] = "Description";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["description"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["blrawb_no"] = "Blrawb No";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["blrawb_no"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["blrawb_date"] = "Blrawb Date";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["blrawb_date"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["country_id"] = "Country Id";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["country_id"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["bill_amount"] = "Bill Amount";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["bill_amount"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["currency_id"] = "Currency";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["currency_id"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["freight_amount"] = "Freight Amount";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["freight_amount"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["insurance_amount"] = "Insurance Amount";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["insurance_amount"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["freely_convertable"] = "Freely Convertable";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["freely_convertable"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["fob"] = "Fob";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["fob"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["realisation_date"] = "Realisation Date";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["realisation_date"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["sdf_form_no"] = "Sdf Form No";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["sdf_form_no"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"]["remarks"] = "Remarks";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"]["remarks"] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"][""] = "";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"][""] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"][""] = "Brc Items";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"][""] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"][""] = "";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"][""] = "";
	$fieldLabelsbrc_items["Chinese (Taiwan)"][""] = "";
	$fieldToolTipsbrc_items["Chinese (Taiwan)"][""] = "";
	if (count($fieldToolTipsbrc_items["Chinese (Taiwan)"])){
		$tdatabrc_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsbrc_items["French"]=array();
	$fieldToolTipsbrc_items["French"]=array();
	$fieldLabelsbrc_items["French"]["id"] = "Id";
	$fieldToolTipsbrc_items["French"]["id"] = "";
	$fieldLabelsbrc_items["French"]["brc_id"] = "Brc Id";
	$fieldToolTipsbrc_items["French"]["brc_id"] = "";
	$fieldLabelsbrc_items["French"]["invoice_no"] = "Invoice No";
	$fieldToolTipsbrc_items["French"]["invoice_no"] = "";
	$fieldLabelsbrc_items["French"]["invoice_date"] = "Invoice Date";
	$fieldToolTipsbrc_items["French"]["invoice_date"] = "";
	$fieldLabelsbrc_items["French"]["custom_no"] = "Custom No";
	$fieldToolTipsbrc_items["French"]["custom_no"] = "";
	$fieldLabelsbrc_items["French"]["custom_date"] = "Custom Date";
	$fieldToolTipsbrc_items["French"]["custom_date"] = "";
	$fieldLabelsbrc_items["French"]["description"] = "Description";
	$fieldToolTipsbrc_items["French"]["description"] = "";
	$fieldLabelsbrc_items["French"]["blrawb_no"] = "Blrawb No";
	$fieldToolTipsbrc_items["French"]["blrawb_no"] = "";
	$fieldLabelsbrc_items["French"]["blrawb_date"] = "Blrawb Date";
	$fieldToolTipsbrc_items["French"]["blrawb_date"] = "";
	$fieldLabelsbrc_items["French"]["country_id"] = "Country Id";
	$fieldToolTipsbrc_items["French"]["country_id"] = "";
	$fieldLabelsbrc_items["French"]["bill_amount"] = "Bill Amount";
	$fieldToolTipsbrc_items["French"]["bill_amount"] = "";
	$fieldLabelsbrc_items["French"]["currency_id"] = "Currency Id";
	$fieldToolTipsbrc_items["French"]["currency_id"] = "";
	$fieldLabelsbrc_items["French"]["freight_amount"] = "Freight Amount";
	$fieldToolTipsbrc_items["French"]["freight_amount"] = "";
	$fieldLabelsbrc_items["French"]["insurance_amount"] = "Insurance Amount";
	$fieldToolTipsbrc_items["French"]["insurance_amount"] = "";
	$fieldLabelsbrc_items["French"]["freely_convertable"] = "Freely Convertable";
	$fieldToolTipsbrc_items["French"]["freely_convertable"] = "";
	$fieldLabelsbrc_items["French"]["fob"] = "Fob";
	$fieldToolTipsbrc_items["French"]["fob"] = "";
	$fieldLabelsbrc_items["French"]["realisation_date"] = "Realisation Date";
	$fieldToolTipsbrc_items["French"]["realisation_date"] = "";
	$fieldLabelsbrc_items["French"]["sdf_form_no"] = "Sdf Form No";
	$fieldToolTipsbrc_items["French"]["sdf_form_no"] = "";
	$fieldLabelsbrc_items["French"]["remarks"] = "Remarks";
	$fieldToolTipsbrc_items["French"]["remarks"] = "";
	if (count($fieldToolTipsbrc_items["French"])){
		$tdatabrc_items[".isUseToolTips"]=true;
	}
}


	
	$tdatabrc_items[".NCSearch"]=true;

	

$tdatabrc_items[".shortTableName"] = "brc_items";
$tdatabrc_items[".nSecOptions"] = 0;
$tdatabrc_items[".recsPerRowList"] = 1;	
$tdatabrc_items[".tableGroupBy"] = "0";
$tdatabrc_items[".mainTableOwnerID"] = "";
$tdatabrc_items[".moveNext"] = 1;




$tdatabrc_items[".showAddInPopup"] = false;

$tdatabrc_items[".showEditInPopup"] = false;

$tdatabrc_items[".showViewInPopup"] = false;


$tdatabrc_items[".fieldsForRegister"] = array();

$tdatabrc_items[".listAjax"] = true;

	$tdatabrc_items[".audit"] = false;

	$tdatabrc_items[".locking"] = false;
	
$tdatabrc_items[".listIcons"] = true;
$tdatabrc_items[".edit"] = true;
$tdatabrc_items[".inlineEdit"] = true;
$tdatabrc_items[".view"] = true;

$tdatabrc_items[".exportTo"] = true;

$tdatabrc_items[".printFriendly"] = true;

$tdatabrc_items[".delete"] = true;

$tdatabrc_items[".showSimpleSearchOptions"] = true;

$tdatabrc_items[".showSearchPanel"] = true;


$tdatabrc_items[".isUseAjaxSuggest"] = true;

$tdatabrc_items[".rowHighlite"] = true;


// button handlers file names

$tdatabrc_items[".addPageEvents"] = false;

$tdatabrc_items[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatabrc_items[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatabrc_items[".isUseTimeForSearch"] = false;

$tdatabrc_items[".isUseiBox"] = false;



$tdatabrc_items[".isUseInlineAdd"] = true;

$tdatabrc_items[".isUseInlineEdit"] = true;
$tdatabrc_items[".isUseInlineJs"] = $tdatabrc_items[".isUseInlineAdd"] || $tdatabrc_items[".isUseInlineEdit"];

$tdatabrc_items[".allSearchFields"] = array();

$tdatabrc_items[".globSearchFields"][] = "invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("invoice_no", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "invoice_no";	
}
$tdatabrc_items[".globSearchFields"][] = "invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("invoice_date", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "invoice_date";	
}
$tdatabrc_items[".globSearchFields"][] = "custom_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("custom_no", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "custom_no";	
}
$tdatabrc_items[".globSearchFields"][] = "custom_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("custom_date", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "custom_date";	
}
$tdatabrc_items[".globSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "description";	
}
$tdatabrc_items[".globSearchFields"][] = "blrawb_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("blrawb_no", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "blrawb_no";	
}
$tdatabrc_items[".globSearchFields"][] = "blrawb_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("blrawb_date", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "blrawb_date";	
}
$tdatabrc_items[".globSearchFields"][] = "country_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_id", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "country_id";	
}
$tdatabrc_items[".globSearchFields"][] = "bill_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bill_amount", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "bill_amount";	
}
$tdatabrc_items[".globSearchFields"][] = "currency_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("currency_id", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "currency_id";	
}
$tdatabrc_items[".globSearchFields"][] = "freight_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("freight_amount", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "freight_amount";	
}
$tdatabrc_items[".globSearchFields"][] = "insurance_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("insurance_amount", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "insurance_amount";	
}
$tdatabrc_items[".globSearchFields"][] = "freely_convertable";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("freely_convertable", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "freely_convertable";	
}
$tdatabrc_items[".globSearchFields"][] = "fob";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fob", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "fob";	
}
$tdatabrc_items[".globSearchFields"][] = "realisation_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("realisation_date", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "realisation_date";	
}
$tdatabrc_items[".globSearchFields"][] = "sdf_form_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("sdf_form_no", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "sdf_form_no";	
}
$tdatabrc_items[".globSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatabrc_items[".allSearchFields"]))
{
	$tdatabrc_items[".allSearchFields"][] = "remarks";	
}


$tdatabrc_items[".googleLikeFields"][] = "id";
$tdatabrc_items[".googleLikeFields"][] = "brc_id";
$tdatabrc_items[".googleLikeFields"][] = "invoice_no";
$tdatabrc_items[".googleLikeFields"][] = "invoice_date";
$tdatabrc_items[".googleLikeFields"][] = "custom_no";
$tdatabrc_items[".googleLikeFields"][] = "custom_date";
$tdatabrc_items[".googleLikeFields"][] = "description";
$tdatabrc_items[".googleLikeFields"][] = "blrawb_no";
$tdatabrc_items[".googleLikeFields"][] = "blrawb_date";
$tdatabrc_items[".googleLikeFields"][] = "country_id";
$tdatabrc_items[".googleLikeFields"][] = "bill_amount";
$tdatabrc_items[".googleLikeFields"][] = "currency_id";
$tdatabrc_items[".googleLikeFields"][] = "freight_amount";
$tdatabrc_items[".googleLikeFields"][] = "insurance_amount";
$tdatabrc_items[".googleLikeFields"][] = "freely_convertable";
$tdatabrc_items[".googleLikeFields"][] = "fob";
$tdatabrc_items[".googleLikeFields"][] = "realisation_date";
$tdatabrc_items[".googleLikeFields"][] = "sdf_form_no";
$tdatabrc_items[".googleLikeFields"][] = "remarks";



$tdatabrc_items[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "id";	
}
$tdatabrc_items[".advSearchFields"][] = "brc_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("brc_id", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "brc_id";	
}
$tdatabrc_items[".advSearchFields"][] = "invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("invoice_no", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "invoice_no";	
}
$tdatabrc_items[".advSearchFields"][] = "invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("invoice_date", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "invoice_date";	
}
$tdatabrc_items[".advSearchFields"][] = "custom_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("custom_no", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "custom_no";	
}
$tdatabrc_items[".advSearchFields"][] = "custom_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("custom_date", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "custom_date";	
}
$tdatabrc_items[".advSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "description";	
}
$tdatabrc_items[".advSearchFields"][] = "blrawb_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("blrawb_no", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "blrawb_no";	
}
$tdatabrc_items[".advSearchFields"][] = "blrawb_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("blrawb_date", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "blrawb_date";	
}
$tdatabrc_items[".advSearchFields"][] = "country_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_id", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "country_id";	
}
$tdatabrc_items[".advSearchFields"][] = "bill_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bill_amount", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "bill_amount";	
}
$tdatabrc_items[".advSearchFields"][] = "currency_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("currency_id", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "currency_id";	
}
$tdatabrc_items[".advSearchFields"][] = "freight_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("freight_amount", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "freight_amount";	
}
$tdatabrc_items[".advSearchFields"][] = "insurance_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("insurance_amount", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "insurance_amount";	
}
$tdatabrc_items[".advSearchFields"][] = "freely_convertable";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("freely_convertable", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "freely_convertable";	
}
$tdatabrc_items[".advSearchFields"][] = "fob";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fob", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "fob";	
}
$tdatabrc_items[".advSearchFields"][] = "realisation_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("realisation_date", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "realisation_date";	
}
$tdatabrc_items[".advSearchFields"][] = "sdf_form_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("sdf_form_no", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "sdf_form_no";	
}
$tdatabrc_items[".advSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatabrc_items[".allSearchFields"])) 
{
	$tdatabrc_items[".allSearchFields"][] = "remarks";	
}

$tdatabrc_items[".isTableType"] = "list";


	

$tdatabrc_items[".isDisplayLoading"] = true;

$tdatabrc_items[".isResizeColumns"] = false;





$tdatabrc_items[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatabrc_items[".strOrderBy"] = $gstrOrderBy;
	
$tdatabrc_items[".orderindexes"] = array();

$tdatabrc_items[".sqlHead"] = "SELECT id,   brc_id,   invoice_no,   invoice_date,   custom_no,   custom_date,   description,   blrawb_no,   blrawb_date,   country_id,   bill_amount,   currency_id,   freight_amount,   insurance_amount,   freely_convertable,   fob,   realisation_date,   sdf_form_no,   remarks";
$tdatabrc_items[".sqlFrom"] = "FROM brc_items";
$tdatabrc_items[".sqlWhereExpr"] = "";
$tdatabrc_items[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatabrc_items[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatabrc_items[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatabrc_items[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatabrc_items["id"]=$fdata;
//	brc_id
	$fdata = array();
	$fdata["strName"] = "brc_id";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Brc Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="id";
				$fdata["LookupTable"]="brcs";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "brc_id";
	
		$fdata["FullName"]= "brc_id";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				
		
				
		
		
		
			$tdatabrc_items["brc_id"]=$fdata;
//	invoice_no
	$fdata = array();
	$fdata["strName"] = "invoice_no";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Invoice No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "invoice_no";
	
		$fdata["FullName"]= "invoice_no";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["invoice_no"]=$fdata;
//	invoice_date
	$fdata = array();
	$fdata["strName"] = "invoice_date";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Invoice Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "invoice_date";
	
		$fdata["FullName"]= "invoice_date";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["invoice_date"]=$fdata;
//	custom_no
	$fdata = array();
	$fdata["strName"] = "custom_no";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Custom No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "custom_no";
	
		$fdata["FullName"]= "custom_no";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["custom_no"]=$fdata;
//	custom_date
	$fdata = array();
	$fdata["strName"] = "custom_date";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Custom Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "custom_date";
	
		$fdata["FullName"]= "custom_date";
	
		
		
		
		
		
				$fdata["Index"]= 6;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["custom_date"]=$fdata;
//	description
	$fdata = array();
	$fdata["strName"] = "description";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Description"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "description";
	
		$fdata["FullName"]= "description";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["description"]=$fdata;
//	blrawb_no
	$fdata = array();
	$fdata["strName"] = "blrawb_no";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Blrawb No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "blrawb_no";
	
		$fdata["FullName"]= "blrawb_no";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["blrawb_no"]=$fdata;
//	blrawb_date
	$fdata = array();
	$fdata["strName"] = "blrawb_date";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Blrawb Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "blrawb_date";
	
		$fdata["FullName"]= "blrawb_date";
	
		
		
		
		
		
				$fdata["Index"]= 9;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["blrawb_date"]=$fdata;
//	country_id
	$fdata = array();
	$fdata["strName"] = "country_id";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Country"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="country_name";
				$fdata["LookupTable"]="countries";
	$fdata["LookupOrderBy"]="country_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "country_id";
	
		$fdata["FullName"]= "country_id";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["country_id"]=$fdata;
//	bill_amount
	$fdata = array();
	$fdata["strName"] = "bill_amount";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Bill Amount"; 
	
		
		
	$fdata["FieldType"]= 14;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bill_amount";
	
		$fdata["FullName"]= "bill_amount";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["bill_amount"]=$fdata;
//	currency_id
	$fdata = array();
	$fdata["strName"] = "currency_id";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Currency"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="currency_name";
				$fdata["LookupTable"]="currencies";
	$fdata["LookupOrderBy"]="currency_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "currency_id";
	
		$fdata["FullName"]= "currency_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 12;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["currency_id"]=$fdata;
//	freight_amount
	$fdata = array();
	$fdata["strName"] = "freight_amount";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Freight Amount"; 
	
		
		
	$fdata["FieldType"]= 14;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "freight_amount";
	
		$fdata["FullName"]= "freight_amount";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["freight_amount"]=$fdata;
//	insurance_amount
	$fdata = array();
	$fdata["strName"] = "insurance_amount";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Insurance Amount"; 
	
		
		
	$fdata["FieldType"]= 14;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "insurance_amount";
	
		$fdata["FullName"]= "insurance_amount";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["insurance_amount"]=$fdata;
//	freely_convertable
	$fdata = array();
	$fdata["strName"] = "freely_convertable";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Freely Convertable"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "freely_convertable";
	
		$fdata["FullName"]= "freely_convertable";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["freely_convertable"]=$fdata;
//	fob
	$fdata = array();
	$fdata["strName"] = "fob";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Fob"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "fob";
	
		$fdata["FullName"]= "fob";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["fob"]=$fdata;
//	realisation_date
	$fdata = array();
	$fdata["strName"] = "realisation_date";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Realisation Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "realisation_date";
	
		$fdata["FullName"]= "realisation_date";
	
		
		
		
		
		
				$fdata["Index"]= 17;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["realisation_date"]=$fdata;
//	sdf_form_no
	$fdata = array();
	$fdata["strName"] = "sdf_form_no";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Sdf Form No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "sdf_form_no";
	
		$fdata["FullName"]= "sdf_form_no";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["sdf_form_no"]=$fdata;
//	remarks
	$fdata = array();
	$fdata["strName"] = "remarks";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Remarks"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "remarks";
	
		$fdata["FullName"]= "remarks";
	
		
		
		
		
		
				$fdata["Index"]= 19;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatabrc_items["remarks"]=$fdata;

	
$tables_data["brc_items"]=&$tdatabrc_items;
$field_labels["brc_items"] = &$fieldLabelsbrc_items;
$fieldToolTips["brc_items"] = &$fieldToolTipsbrc_items;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["brc_items"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["brc_items"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="currencies";
	$masterTablesData["brc_items"][$mIndex] = array(
		  "mDataSourceTable"=>"currencies"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "currencies"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 0
	);	
		$masterTablesData["brc_items"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["brc_items"][$mIndex]["detailKeys"][]="currency_id";

$mIndex = 2-1;
			$strOriginalDetailsTable="brcs";
	$masterTablesData["brc_items"][$mIndex] = array(
		  "mDataSourceTable"=>"brcs"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "brcs"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 1
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$masterTablesData["brc_items"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["brc_items"][$mIndex]["detailKeys"][]="brc_id";

$mIndex = 3-1;
			$strOriginalDetailsTable="countries";
	$masterTablesData["brc_items"][$mIndex] = array(
		  "mDataSourceTable"=>"countries"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "countries"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 0
	);	
		$masterTablesData["brc_items"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["brc_items"][$mIndex]["detailKeys"][]="country_id";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto371=array();
$proto371["m_strHead"] = "SELECT";
$proto371["m_strFieldList"] = "id,   brc_id,   invoice_no,   invoice_date,   custom_no,   custom_date,   description,   blrawb_no,   blrawb_date,   country_id,   bill_amount,   currency_id,   freight_amount,   insurance_amount,   freely_convertable,   fob,   realisation_date,   sdf_form_no,   remarks";
$proto371["m_strFrom"] = "FROM brc_items";
$proto371["m_strWhere"] = "";
$proto371["m_strOrderBy"] = "";
$proto371["m_strTail"] = "";
$proto372=array();
$proto372["m_sql"] = "";
$proto372["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto372["m_column"]=$obj;
$proto372["m_contained"] = array();
$proto372["m_strCase"] = "";
$proto372["m_havingmode"] = "0";
$proto372["m_inBrackets"] = "0";
$proto372["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto372);

$proto371["m_where"] = $obj;
$proto374=array();
$proto374["m_sql"] = "";
$proto374["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto374["m_column"]=$obj;
$proto374["m_contained"] = array();
$proto374["m_strCase"] = "";
$proto374["m_havingmode"] = "0";
$proto374["m_inBrackets"] = "0";
$proto374["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto374);

$proto371["m_having"] = $obj;
$proto371["m_fieldlist"] = array();
						$proto376=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "brc_items"
));

$proto376["m_expr"]=$obj;
$proto376["m_alias"] = "";
$obj = new SQLFieldListItem($proto376);

$proto371["m_fieldlist"][]=$obj;
						$proto378=array();
			$obj = new SQLField(array(
	"m_strName" => "brc_id",
	"m_strTable" => "brc_items"
));

$proto378["m_expr"]=$obj;
$proto378["m_alias"] = "";
$obj = new SQLFieldListItem($proto378);

$proto371["m_fieldlist"][]=$obj;
						$proto380=array();
			$obj = new SQLField(array(
	"m_strName" => "invoice_no",
	"m_strTable" => "brc_items"
));

$proto380["m_expr"]=$obj;
$proto380["m_alias"] = "";
$obj = new SQLFieldListItem($proto380);

$proto371["m_fieldlist"][]=$obj;
						$proto382=array();
			$obj = new SQLField(array(
	"m_strName" => "invoice_date",
	"m_strTable" => "brc_items"
));

$proto382["m_expr"]=$obj;
$proto382["m_alias"] = "";
$obj = new SQLFieldListItem($proto382);

$proto371["m_fieldlist"][]=$obj;
						$proto384=array();
			$obj = new SQLField(array(
	"m_strName" => "custom_no",
	"m_strTable" => "brc_items"
));

$proto384["m_expr"]=$obj;
$proto384["m_alias"] = "";
$obj = new SQLFieldListItem($proto384);

$proto371["m_fieldlist"][]=$obj;
						$proto386=array();
			$obj = new SQLField(array(
	"m_strName" => "custom_date",
	"m_strTable" => "brc_items"
));

$proto386["m_expr"]=$obj;
$proto386["m_alias"] = "";
$obj = new SQLFieldListItem($proto386);

$proto371["m_fieldlist"][]=$obj;
						$proto388=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "brc_items"
));

$proto388["m_expr"]=$obj;
$proto388["m_alias"] = "";
$obj = new SQLFieldListItem($proto388);

$proto371["m_fieldlist"][]=$obj;
						$proto390=array();
			$obj = new SQLField(array(
	"m_strName" => "blrawb_no",
	"m_strTable" => "brc_items"
));

$proto390["m_expr"]=$obj;
$proto390["m_alias"] = "";
$obj = new SQLFieldListItem($proto390);

$proto371["m_fieldlist"][]=$obj;
						$proto392=array();
			$obj = new SQLField(array(
	"m_strName" => "blrawb_date",
	"m_strTable" => "brc_items"
));

$proto392["m_expr"]=$obj;
$proto392["m_alias"] = "";
$obj = new SQLFieldListItem($proto392);

$proto371["m_fieldlist"][]=$obj;
						$proto394=array();
			$obj = new SQLField(array(
	"m_strName" => "country_id",
	"m_strTable" => "brc_items"
));

$proto394["m_expr"]=$obj;
$proto394["m_alias"] = "";
$obj = new SQLFieldListItem($proto394);

$proto371["m_fieldlist"][]=$obj;
						$proto396=array();
			$obj = new SQLField(array(
	"m_strName" => "bill_amount",
	"m_strTable" => "brc_items"
));

$proto396["m_expr"]=$obj;
$proto396["m_alias"] = "";
$obj = new SQLFieldListItem($proto396);

$proto371["m_fieldlist"][]=$obj;
						$proto398=array();
			$obj = new SQLField(array(
	"m_strName" => "currency_id",
	"m_strTable" => "brc_items"
));

$proto398["m_expr"]=$obj;
$proto398["m_alias"] = "";
$obj = new SQLFieldListItem($proto398);

$proto371["m_fieldlist"][]=$obj;
						$proto400=array();
			$obj = new SQLField(array(
	"m_strName" => "freight_amount",
	"m_strTable" => "brc_items"
));

$proto400["m_expr"]=$obj;
$proto400["m_alias"] = "";
$obj = new SQLFieldListItem($proto400);

$proto371["m_fieldlist"][]=$obj;
						$proto402=array();
			$obj = new SQLField(array(
	"m_strName" => "insurance_amount",
	"m_strTable" => "brc_items"
));

$proto402["m_expr"]=$obj;
$proto402["m_alias"] = "";
$obj = new SQLFieldListItem($proto402);

$proto371["m_fieldlist"][]=$obj;
						$proto404=array();
			$obj = new SQLField(array(
	"m_strName" => "freely_convertable",
	"m_strTable" => "brc_items"
));

$proto404["m_expr"]=$obj;
$proto404["m_alias"] = "";
$obj = new SQLFieldListItem($proto404);

$proto371["m_fieldlist"][]=$obj;
						$proto406=array();
			$obj = new SQLField(array(
	"m_strName" => "fob",
	"m_strTable" => "brc_items"
));

$proto406["m_expr"]=$obj;
$proto406["m_alias"] = "";
$obj = new SQLFieldListItem($proto406);

$proto371["m_fieldlist"][]=$obj;
						$proto408=array();
			$obj = new SQLField(array(
	"m_strName" => "realisation_date",
	"m_strTable" => "brc_items"
));

$proto408["m_expr"]=$obj;
$proto408["m_alias"] = "";
$obj = new SQLFieldListItem($proto408);

$proto371["m_fieldlist"][]=$obj;
						$proto410=array();
			$obj = new SQLField(array(
	"m_strName" => "sdf_form_no",
	"m_strTable" => "brc_items"
));

$proto410["m_expr"]=$obj;
$proto410["m_alias"] = "";
$obj = new SQLFieldListItem($proto410);

$proto371["m_fieldlist"][]=$obj;
						$proto412=array();
			$obj = new SQLField(array(
	"m_strName" => "remarks",
	"m_strTable" => "brc_items"
));

$proto412["m_expr"]=$obj;
$proto412["m_alias"] = "";
$obj = new SQLFieldListItem($proto412);

$proto371["m_fieldlist"][]=$obj;
$proto371["m_fromlist"] = array();
												$proto414=array();
$proto414["m_link"] = "SQLL_MAIN";
			$proto415=array();
$proto415["m_strName"] = "brc_items";
$proto415["m_columns"] = array();
$proto415["m_columns"][] = "id";
$proto415["m_columns"][] = "brc_id";
$proto415["m_columns"][] = "invoice_no";
$proto415["m_columns"][] = "invoice_date";
$proto415["m_columns"][] = "custom_no";
$proto415["m_columns"][] = "custom_date";
$proto415["m_columns"][] = "description";
$proto415["m_columns"][] = "blrawb_no";
$proto415["m_columns"][] = "blrawb_date";
$proto415["m_columns"][] = "country_id";
$proto415["m_columns"][] = "bill_amount";
$proto415["m_columns"][] = "currency_id";
$proto415["m_columns"][] = "freight_amount";
$proto415["m_columns"][] = "insurance_amount";
$proto415["m_columns"][] = "freely_convertable";
$proto415["m_columns"][] = "fob";
$proto415["m_columns"][] = "realisation_date";
$proto415["m_columns"][] = "sdf_form_no";
$proto415["m_columns"][] = "remarks";
$obj = new SQLTable($proto415);

$proto414["m_table"] = $obj;
$proto414["m_alias"] = "";
$proto416=array();
$proto416["m_sql"] = "";
$proto416["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto416["m_column"]=$obj;
$proto416["m_contained"] = array();
$proto416["m_strCase"] = "";
$proto416["m_havingmode"] = "0";
$proto416["m_inBrackets"] = "0";
$proto416["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto416);

$proto414["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto414);

$proto371["m_fromlist"][]=$obj;
$proto371["m_groupby"] = array();
$proto371["m_orderby"] = array();
$obj = new SQLQuery($proto371);

$queryData_brc_items = $obj;
$tdatabrc_items[".sqlquery"] = $queryData_brc_items;

$tableEvents["brc_items"] = new eventsBase;

?>
